package cn.two.controller;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.two.model.OaDept;
import cn.two.service.deptService;

@Controller
@RequestMapping("/dept")
public class deptController {

	@Resource
	private deptService deptService;
	
	@RequestMapping("/deptCheckAll")
	public String checkAll(HttpSession session){
		
		List<OaDept> list=deptService.checkAll();
		
		session.setAttribute("deptList", list);
		
		return "apply";
	}
	
}
